﻿//03.Write a program to convert decimal numbers to their hexadecimal representation.

using System;
using System.Collections.Generic;


namespace DecimalToHexadecimal
{
    class DecimalToHexadecimal
    {
        static void Main()
        {
            Console.Write("Enter a decimal number: ");
            string decNumber = Console.ReadLine();

            int number = int.Parse(decNumber);
            string hex = number.ToString("x");
            Console.WriteLine("Int value = {0}, hex value = {1}.", decNumber, hex);
        }
    }
}
